<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>ActionView::DependencyTracker::ERBTracker</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/github.css" type="text/css" media="screen" />
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>     
    <div class="banner">
        
            <span>Ruby on Rails v4.0.0</span><br />
        
        <h1>
            <span class="type">Class</span> 
            ActionView::DependencyTracker::ERBTracker 
            
                <span class="parent">&lt; 
                    
                    <a href="../../Object.html">Object</a>
                    
                </span>
            
        </h1>
        <ul class="files">
            
            <li><a href="../../../files/actionpack/lib/action_view/dependency_tracker_rb.html">actionpack/lib/action_view/dependency_tracker.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
  


  


  
  


  


  
    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
      
        <dt>C</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="ERBTracker.html#method-c-call">call</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>D</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="ERBTracker.html#method-i-dependencies">dependencies</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>N</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="ERBTracker.html#method-c-new">new</a>
              </li>
            
          </ul>
        </dd>
      
    </dl>
  

  



  

    

    

    
      <!-- Section constants -->
      <div class="sectiontitle">Constants</div>
      <table border='0' cellpadding='5'>
        
          <tr valign='top'>
            <td class="attr-name">EXPLICIT_DEPENDENCY</td>
            <td>=</td>
            <td class="attr-value">/# Template Dependency: (\S+)/</td>
          </tr>
          
            <tr valign='top'>
              <td>&nbsp;</td>
              <td colspan="2" class="attr-desc"></td>
            </tr>
          
        
          <tr valign='top'>
            <td class="attr-name">RENDER_DEPENDENCY</td>
            <td>=</td>
            <td class="attr-value">/
render\s*                     # render, followed by optional whitespace
\(?                           # start an optional parenthesis for the render call
(partial:|:partial\s+=&gt;)?\s*  # naming the partial, used with collection -- 1st capture
([@a-z&quot;'][@\w\/\.&quot;']+)        # the template name itself -- 2nd capture
/x</td>
          </tr>
          
            <tr valign='top'>
              <td>&nbsp;</td>
              <td colspan="2" class="attr-desc"><p>Matches:</p>

<pre class="ruby"><span class="ruby-identifier">render</span> <span class="ruby-identifier">partial</span><span class="ruby-operator">:</span> <span class="ruby-string">&quot;comments/comment&quot;</span>, <span class="ruby-identifier">collection</span><span class="ruby-operator">:</span> <span class="ruby-identifier">commentable</span>.<span class="ruby-identifier">comments</span>
<span class="ruby-identifier">render</span> <span class="ruby-string">&quot;comments/comments&quot;</span>
<span class="ruby-identifier">render</span> <span class="ruby-string">'comments/comments'</span>
<span class="ruby-identifier">render</span>(<span class="ruby-string">'comments/comments'</span>)

<span class="ruby-identifier">render</span>(<span class="ruby-ivar">@topic</span>)         =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">render</span>(<span class="ruby-string">&quot;topics/topic&quot;</span>)
<span class="ruby-identifier">render</span>(<span class="ruby-identifier">topics</span>)         =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">render</span>(<span class="ruby-string">&quot;topics/topic&quot;</span>)
<span class="ruby-identifier">render</span>(<span class="ruby-identifier">message</span>.<span class="ruby-identifier">topics</span>) =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">render</span>(<span class="ruby-string">&quot;topics/topic&quot;</span>)
</pre></td>
            </tr>
          
        
      </table>
    


    


    <!-- Methods -->
    
      <div class="sectiontitle">Class Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-c-call">
            
              <b>call</b>(name, template)
            
            <a href="ERBTracker.html#method-c-call" name="method-c-call" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-call_source')" id="l_method-c-call_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/9470b3cc532ecf5348168a4bebc9366e4d81a08c/actionpack/lib/action_view/dependency_tracker.rb#L45" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-call_source" class="dyn-source">
                <pre><span class="ruby-comment"># File actionpack/lib/action_view/dependency_tracker.rb, line 45</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">self</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">template</span>)
  <span class="ruby-identifier">new</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">template</span>).<span class="ruby-identifier">dependencies</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-c-new">
            
              <b>new</b>(name, template)
            
            <a href="ERBTracker.html#method-c-new" name="method-c-new" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/9470b3cc532ecf5348168a4bebc9366e4d81a08c/actionpack/lib/action_view/dependency_tracker.rb#L49" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-new_source" class="dyn-source">
                <pre><span class="ruby-comment"># File actionpack/lib/action_view/dependency_tracker.rb, line 49</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">template</span>)
  <span class="ruby-ivar">@name</span>, <span class="ruby-ivar">@template</span> = <span class="ruby-identifier">name</span>, <span class="ruby-identifier">template</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                  
      <div class="sectiontitle">Instance Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-i-dependencies">
            
              <b>dependencies</b>()
            
            <a href="ERBTracker.html#method-i-dependencies" name="method-i-dependencies" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-dependencies_source')" id="l_method-i-dependencies_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/9470b3cc532ecf5348168a4bebc9366e4d81a08c/actionpack/lib/action_view/dependency_tracker.rb#L53" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-dependencies_source" class="dyn-source">
                <pre><span class="ruby-comment"># File actionpack/lib/action_view/dependency_tracker.rb, line 53</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">dependencies</span>
  <span class="ruby-identifier">render_dependencies</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">explicit_dependencies</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                    </div>

    </div>
  </body>
</html>    